package com.mjh.zhujianju.service.party;

import com.livew.framework.base.service.BaseService;
import com.livew.framework.exception.XTBusinessException;
import com.mjh.zhujianju.model.party.BuildingExamResultEO;
import com.mjh.zhujianju.vo.party.BuildingExamResultVO;

import java.util.List;
import java.util.Map;

/**
 * @author liuyang
 * @Description: 考试成绩结果
 * @date 2018/8/19 9:39
 */
public interface BuildingExamResultService  extends BaseService<BuildingExamResultEO> {

    /**
     * 根据考试科目分组统计
     * @return
     */
    List<BuildingExamResultVO> selectTotalUsers();

    /**
     * 查询用户的考试记录信息
     * @param examId
     * @param userId
     * @return
     */
    BuildingExamResultVO queryBuildingExamResultList(Long examId,Long userId);

    List<BuildingExamResultEO> queryBuildingExamResultByExamId(Long examId);


    /**
     * 根据用户id查询考试记录
     * @param userId
     * @return
     */
    List<BuildingExamResultEO> queryBuildingExamResultByUserIdList(Long userId);


    /**
     * 查询考试结果
     * @param userId
     * @return
     */
    Map<String,Object>  queryBuildingExamResultDeatil(Long userId,Long examId) throws XTBusinessException;
}
